import request from "@/utils/request";

export async function getList(params) {
  return request(`/ent/repayment/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function detail(params) {
  return request(`/ent/repayment/detail`, {
    method: "POST",
    body: {
      repaymentNo:params.code
    }
  });
}

export async function repayment(params) {
  return request(`/ent/repayment/repay`, {
    method: "POST",
    body: params
  });
}

export async function recharge(params) {
  return request(`/ent/repayment/recharge`, {
    method: "POST",
    body: params
  });
}

export async function compensatory(params) {
  return request(`/ent/repayment/compensatory/repay`, {
    method: "POST",
    body: params
  });
}

export async function confirm(params) {
  return request(`/repayment/confirm`, {
    method: "POST",
    body: params
  });
}
